/**
 * LGPL
 * @Author jw12
 */
package org.biodas.jdas.converter;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;

import org.biodas.jdas.schema.features.GROUP;

/**
 * class to contain info on the range of a GroupFeature
 * LPGL
 *@author JWarren
 *
 */
public class GroupRange {

	private BigInteger start;
	private BigInteger end;
	private GROUP group; //need this to hold the link and notes etc so we can create a 1.6 style feature with these properties
	private List<String> parts;//we need to store the parts so we don't have to go through the list again to get these for the final feature parent
	public GROUP getGroup() {
		return group;
	}
	public void setGroup(GROUP group) {
		this.group = group;
	}
	/**
	 * @param featureStart
	 * @param featureEnd
	 * @param group2 
	 */
	public GroupRange(BigInteger featureStart, BigInteger featureEnd, GROUP group, String featureId) {
		this.start=featureStart;
		this.end=featureEnd;
		this.group=group;
		parts=new ArrayList<String>();
		parts.add(featureId);
	}
	public BigInteger getStart() {
		return start;
	}
	public void setStart(BigInteger start) {
		this.start = start;
	}
	public BigInteger getEnd() {
		return end;
	}
	public void setEnd(BigInteger end) {
		this.end = end;
	}
	
	public void addPart(String part){
		this.parts.add(part);
	}
	/**
	 * @return
	 */
	public List<String> getParts() {
		return parts;
	}
	
}
